{include file="public/hunanconstr_meta" /}
<link href="__PUBLIC_ADMIN__css/plugins/footable/footable.core.css" rel="stylesheet">
<style>
#huiedit{
	background-color: #1ab394;
	color: #FFFFFF;
}
#huidel{
	background-color: #ed5565;
	color: #FFFFFF;
}
#hui{
	 width: 50px;
        height: 50px;
}
</style>
</head>

<body class="gray-bg">
   <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>会议类别信息</h5>
                        <div class="ibox-tools">
                            <a href="{:url('admin/Meeting/userClassAdd')}" class="btn btn-primary btn-xs">添加内容</a>
                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="row m-b-sm m-t-sm">
                            <div class="col-md-1">
                                <button type="button" id="loading-example-btn" class="btn btn-white btn-sm refresh" ><i class="fa fa-refresh"></i> 刷新</button>
                            </div>
                            <div class="col-md-1">
                            <div class="ibox-tools" style="float: left;"><a href="{:url('admin/Meeting/export')}" class="btn btn-primary ">下载模板</a></div>
                            </div>
<!--                             <div class="col-md-11">
                                <div class="input-group">
                                    <input placeholder="请输入订单号" name="order_id" class="input-sm form-control" type="text"> <span class="input-group-btn">
                                        <button type="button" class="btn btn-sm btn-primary"> 搜索</button> </span>
                                </div>
                            </div> -->
                        </div>

						<table class="footable table table-stripped toggle-arrow-tiny" data-page-size="50" data-filter=#filter>
                            <thead>
                                    <tr>
                                        <th>类别ID</th>
                                        <th>类别名称</th>
                                        <th>机票</th>
                                        <th>酒店</th>
                                        <th>用车</th>
                                        <th>是否注册</th>
                                        <th>是否显示任务书</th>
                                        <th>创建时间</th>
                                        <th>操作</th>
                                    </tr>
                                </thead>
                                <tbody>
                                	{foreach name="res" id="vo" key="key"}
                                    <tr class="gradeX">
                                        <td>{$vo.id}</td>
                                        <td>{$vo.name}</td>
                                        <td>{if condition="$vo.plane_status eq 1"}大会出票{else /}自理{/if}</td>
                                        <td>{if condition="$vo.hotel_status eq 1"}大会公付{else /}酒店自付{/if}</td>
                                        <td>{if condition="$vo.car_status eq 1"}大会安排{else /}自理{/if}</td>
                                        <td>{if condition="$vo.reg_status eq 1"}已注册{else /}未注册{/if}</td>
                                        <td>{if condition="$vo.task_status eq 1"}显示{else /}不显示{/if}</td>
                                        <td>{$vo.create_time|date="Y-m-d H:i:s",###}</td>
                                        <td>
                                            <a href="{:url('admin/Meeting/userClassEdit',['id'=>$vo.id])}" id="huiedit" class="btn btn-white btn-sm">编辑 </a>
                                            <a href="{:url('admin/Meeting/userClassDel',['id'=>$vo.id])}" id="huidel" class="btn btn-white btn-sm">删除 </a>
                                            <form  class="staffFile" action="{:url('admin/Meeting/inserExcel',['id'=>$vo.id])}" enctype="multipart/form-data" method="post" style="margin-left: 15px; float: left;"> 
				                                <input type="file" name="file_stu" class="importStaffFile" style="float: left; display: none" />
				                                <button type="button" id="huiedit" class="btn btn-white btn-sm importStaff" style="float: left;" >嘉宾信息导入</button>
				                            </form>
                                        </td>
                                    </tr>
                                    {/foreach}
                                </tbody>
                                <tfoot hidden="hidden">
                                    <tr>
                                        <td colspan="5">
                                            <ul class="pagination pull-right"></ul>
                                        </td>
                                    </tr>
                                </tfoot>   
                        </table>
                        <div class="item-page" style="padding-left:36%;">
                        
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
        
    {include file="public/_footer" /}
	<script src="__PUBLIC_ADMIN__js/plugins/footable/footable.all.min.js"></script>
	
    <!-- 自定义js -->
    <script src="__PUBLIC_ADMIN__js/content.js?v=1.0.0"></script>
    <script>
        $(document).ready(function() {
            $('.footable').footable();
            $('.footable2').footable();
			
            $('.refresh').click(function(){
            	window.location.reload();	// 刷新页面
            })
		});
	</script>
	    <script>
    $(document).ready(function(){
        $(".importStaff").click(function(){
            $(this).prev('.importStaffFile').trigger("click"); 
        })
        
        $(".importStaffFile").change(function(){
          $(this).parent(".staffFile").submit()
        });
    })
    
    </script>
</body>
</html>
